package _999ZuHeShiTi;

import _999ZuHeShiTi.dependent.DependentOneObject;
import _999ZuHeShiTi.dependent.DependentTwoObject;

/**
 * @CoarseGrainedObject: 粗粒度对象
 * @author: ZBoHang
 * @time: 2021/9/18 10:13
 */
public class CoarseGrainedObject {
    DependentOneObject do1 = new DependentOneObject();
    DependentTwoObject do2 = new DependentTwoObject();

    public void setData(String data1, String data2) {
        do1.setData(data1);
        do2.setData(data2);
    }

    public String[] getData() {
        return new String[] {do1.getData(), do2.getData()};
    }
}
